@import '~@alife/aisc-core/purple/scss/index.scss';
@import '~@alife/aone-core/variables/index';
.mr-commits-empty {
  min-height: 150px;
  height: calc(100vh - 290px);
}
.mr-diffs-empty {
  min-height: 150px;
  height: calc(100vh - 350px);
  div.container {
    width: 100%;
    code {
      white-space: normal !important;
    }
  }
}
.mr-change-tree {
  flex: none;
  &-top {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .#{$teamix-prefix}color-s-tag {
      margin: 0;
    }
  }
  .changes-left {
    overflow-y: auto;
    overflow-x: visible;
    padding: 0 20px;
    .tree-left-line {
      border: 1px solid #e5e5e5;
      width: 1px;
      height: 16px;
      margin-left: 10px;
      margin-right: 10px;
    }
    // 对树样式调整，保证显示在一行
    .#{$teamix-prefix}tree-switcher.#{$teamix-prefix}noop-noline {
      flex-shrink: 0;
    }
    .#{$teamix-prefix}tree-node-label-wrapper {
      max-width: calc(100% - 40px);
      .label-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        // 被选中的样式
        &.selected {
          .file-icon {
            color: $primary-brand;
          }
          .read,
          .unread {
            color: $gray-08;
            font-weight: 500;
          }
        }
        &-right {
          margin-left: 4px;
        }
        .teamix-title {
          padding-left: 24px;
        }
        .file-icon {
          position: absolute;
          // top: 0;
          left: 0;
        }
        .add-lines {
          color: $color-success;
          max-width: 60px;
        }
        .del-lines {
          color: $color-danger;
          max-width: 60px;
        }
        .read {
          color: $gray-06;
        }
        .unread {
          color: $gray-08;
        }
        .comment-status {
          color: $gray-06;
          > button {
            height: 20px !important;
            margin-top: -2px;
          }
        }
        .comment-status:hover {
          .#{$teamix-prefix}icon {
            color: #1b9aee !important;
          }
        }
        .#{$teamix-prefix}badge {
          width: 20px;
          height: 20px;
          position: absolute;
          top: 0;
          left: 0;
          &-dot {
            right: -3px;
            top: -1px;
          }
        }
      }
    }
  }
}
.changes-tree {
  margin-left: -13px;
  font-size: 12px;
  &-item {
    margin-left: 10px;
    word-break: break-all;
    &-folder {
      color: $color-text1-2;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      align-items: center;
      display: block;
      padding: 2px 0 1px;
      cursor: pointer;
      &-toggle {
        font-size: 14px !important;
        color: $color-n2-3;
        line-height: 14px !important;
        margin-right: 3px;
        margin-left: 3px;
        &.fa-caret-down {
          vertical-align: text-bottom;
        }
      }
      &-children {
        .changes-tree-item-file {
          margin-left: 20px;
        }
        .changes-tree-item-folder {
          margin-left: 9px;
        }
      }
    }
    &-file {
      display: flex;
      align-items: center;
      font-weight: bold;
      margin-left: 14px;
      line-height: 24px;
      &-name {
        align-items: center;
        flex: auto;
        display: inline-block;
        &.active,
        &:hover {
          // color: $color-link-4 !important;
          // color: $color-text1-4 !important;
          color: $color-link-4 !important;
          font-weight: bolder;
          position: relative;
          &::before {
            content: '';
            width: 2px;
            height: 16px;
            background: $color-link-4;
            position: absolute;
            top: 50%;
            margin-top: -8px;
            left: -5px;
          }
        }
        .file-icon-add {
          color: $primary-success;
        }
        .file-icon-modify {
          color: $primary-warning;
        }
        .file-icon-delete {
          color: $primary-danger;
        }
      }
    }
    &-right {
      flex: none;
      line-height: 24px;
      position: relative;
      top: 2px;
      .mark-read-btn-read {
        color: $color-f3-1;
        position: relative;
        top: -1px;
        left: 1px;
        cursor: pointer;
      }
      .mark-read-btn-unread {
        color: $color-n1-7;
        position: relative;
        top: -1px;
        left: 1px;
        cursor: pointer;
      }
    }
    &-right-item {
      margin-left: 10px;
      &.add-lines {
        color: $color-success;
        max-width: 60px;
      }
      &.del-lines {
        color: $color-danger;
        max-width: 60px;
      }
      &.comments-cnt {
        color: $color-text1-1;
        .fa {
          margin-right: 2px;
        }
      }
    }
    &-icon {
      margin-right: 4px;
    }
  }

  span.#{$teamix-prefix}tree-switcher {
    position: relative;
    width: 24px !important;
    height: 28px !important;
    line-height: 28px !important;
    text-align: center;
  }

  .#{$teamix-prefix}tree-node {
    position: relative;
  }
}
